import java.util.Scanner;

public class Main8
{
    public static int  StringToInt ( String str)
    {
        StringBuffer sb = new StringBuffer();

        for(int i = 0 ; i< str.length() ; i++)
        {
            char ch = str.charAt(i);
            if ( ch>='0' && ch <='9' )
            {
                sb.append(ch);
            }
        }
        if (sb.length() == 0) {
            return 0;
        } else {
            return Integer.parseInt(sb.toString());
        }
    }


    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        int x = StringToInt(str);
        System.out.println(x);
        sc.close();
    }
}